package com.laich.springcloud;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import com.laich.springcloud.constants.SecurityConstants;
import com.laich.springcloud.dto.UserInfo;
import com.laich.springcloud.entity.SysUser;
import com.laich.springcloud.feign.RemoteUserService;
import com.laich.springcloud.utils.R;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = StartOrderApplication.class)
public class RemoteUserTs {
	@Autowired
	RemoteUserService remoteUserService;

	@Test
	public void tUser() {
		R<UserInfo> user = remoteUserService.info("laich", SecurityConstants.FROM_IN);;
		System.err.println(user.toString());
		
	}
}
